package com.xxl.job.executor.dao;

import com.xxl.job.executor.model.QxMap;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


public interface QxMapMapper {
    int deleteByPrimaryKey(String id);
    @Insert("insert into QX_MAP (ID, CREATETIME, TYPE,FILENAME, FILEPATH, PUBLISHTIME)values (#{id}, #{createtime}, #{type}, #{filename}, #{filepath}, #{publishtime})")
    int insert(QxMap record);

    int insertSelective(QxMap record);

    QxMap selectByPrimaryKey(String id);

    QxMap selectByTime(@Param("publishtime") String publishtime, @Param("type") String type);

    int updateByPrimaryKeySelective(QxMap record);

    int updateByPrimaryKey(QxMap record);
}
